package com.homework11;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class demo {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        File s1 = new File(s);
        if(s1.exists()){
            System.out.println(s1.length());
        }else {
            s1.createNewFile();
        }
    }
}
